package be.gnx.event.consumer.application.configuration;

import java.util.ArrayList;
import java.util.List;

import be.gnx.event.consumer.receiver.Receiver;
import be.gnx.event.consumer.receiver.log4j.Log4JEventProcessor;
import be.gnx.event.consumer.receiver.logback.LogbackEventProcessor;
import be.gnx.event.consumer.receiver.net.SocketListener;

public class Configuration {

	private static List<Class> availableReceivers = new ArrayList<Class>();
	private static List<Class> availableEvents = new ArrayList<Class>();
	private static List<Receiver> receivers = new ArrayList<Receiver>();

	static {
		receivers.add(new SocketListener(4445, 0, null, Log4JEventProcessor.getInstance()));
		receivers.add(new SocketListener(4560, 0, null, LogbackEventProcessor.getInstance()));
	}

	public static List<Class> getAvailableReceivers() {
		return availableReceivers;
	}

	public static List<Class> getAvailableEvents() {
		return availableEvents;
	}

	public static List<Receiver> getReceivers() {
		return receivers;
	}

}
